import request from "@/utils/request.js";

// 信箱管理管理获取列表
export const getMailboxListApi = (params) => {
  return request({
    url: "/service/mailbox",
    method: "get",
    params,
  });
};

// 信箱管理管理添加
export const addMailboxApi = (data) => {
  return request({
    url: "/service/mailbox",
    method: "post",
    data,
  });
};

// 信箱管理管理详情
export const getMailboxInfoApi = (id) => {
  return request({
    url: "/service/mailbox/" + id,
    method: "get",
  });
};

// 信箱管理管理修改
export const editMailboxApi = (data) => {
  return request({
    url: "/service/mailbox/" + data.id,
    method: "put",
    data,
  });
};

// 信箱管理管理删除
export const delMailboxApi = (id) => {
  return request({
    url: "/service/mailbox/" + id,
    method: "delete",
  });
};
